package com.cyt.work.enrollment.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;
import com.cyt.work.enrollment.model.po.EnrollmentHomeinfo;
import com.cyt.work.enrollment.model.po.EnrollmentTest;
import com.cyt.work.enrollment.model.vo.EnrollmentTestVo;

import java.util.List;

/**
 * 自主招生-学生考试成绩Service层接口类
 *
 * @author caideyong
 * @date 2019-11-22 16:38:52
 */
public interface EnrollmentTestService extends BaseService<EnrollmentTest> {

    /**
     * 查询对象集合
     *
     * @param enrollmentTestVo 对象
     * @return List 对象集合
     * @author caideyong
     * @date 2019-11-22 16:38:52
     */
    List<EnrollmentTest> listExample(EnrollmentTestVo enrollmentTestVo);

    /**
     * 分页查询
     *
     * @param enrollmentTestVo 接受参数对象
     * @param pageNum          分页数
     * @param pageSize         每页显示条数
     * @return ReturnResult
     * @author caideyong
     * @date 2019-11-22 16:38:52
     */
    ReturnResult page(EnrollmentTestVo enrollmentTestVo, int pageNum, int pageSize);

    /**
     * 添加或更新
     *
     * @param enrollmentTestVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author caideyong
     * @date 2019-11-22 16:38:52
     */
    ReturnResult addOrUpdate(EnrollmentTestVo enrollmentTestVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param enrollmentTestVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author caideyong
     * @date 2019-11-22 16:38:52
     */
    ReturnResult remove(EnrollmentTestVo enrollmentTestVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param enrollmentTestVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author caideyong
     * @date 2019-11-22 16:38:52
     */
    ReturnResult delete(EnrollmentTestVo enrollmentTestVo, SysUser sysUser);

    /**
     * 批量保存
     *
     * @author caideyong
     * @date 2019/11/27
     */
    void insertList(List<EnrollmentTest> enrollmentTestList);
}